package com.absurdzoo.wintermelon;

import javax.swing.*;
import java.awt.*;

public class RockScissorPaperWindow  extends JFrame {

    private JPanel jPanel;

    private JButton button;

    public RockScissorPaperWindow(String title) throws HeadlessException{
        super(title);
        init();
    }

    private void init(){
        setSize(500,500);
        setLocationRelativeTo(null);
        setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);

         jPanel = new JPanel();
         button =new JButton("比赛");
         jPanel.add(button);

         setContentPane(jPanel);

    }
}
